<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="com.iss.umservice.bean.CompanyBean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/taglibs/iss" prefix="iss"%>
<%@ taglib prefix="a" uri="/tags/auth"%>
<HTML>
<HEAD>
<TITLE>MKTB15</TITLE>
<LINK href="../css/IDEA.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="../js/IDEA_body.js"
	type=text/javascript></SCRIPT>
<script src="../js/main.js" language="javascript" type="text/javascript"></script>
<link rel="stylesheet" href="../css/validationEngine.jquery.css"
	type="text/css" />
<script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
<script src="../js/languages/jquery.validationEngine-zh_CN.js"
	type="text/javascript" charset="utf-8"></script>
<%
	CompanyBean company = (CompanyBean) request.getAttribute("company");
%>
<script src="../My97DatePicker/WdatePicker.js" language="JavaScript"
	type="text/JavaScript"></SCRIPT>
<script src="../js/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>
<script>
	jQuery(document).ready(function() {
		jQuery("#mainForm3").validationEngine({
			autoHidePrompt : true
		});
		//
		$("#mybox").click(function() {
			$("[name=deleteIds]").attr("checked", this.checked);
		});
		//
		$("#delBtn").click(function() {
			if($("[name=deleteIds]:checked").length<1){
				alert("请勾选要删除的公告");
				return;
			}
			if(confirm('是否确认删除？'))
				$("#mainForm9")[0].submit();
		});
	});
</script>

</HEAD>

<body>
	<TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
		<TBODY>
			<TR>
				<TD height="100%" bgcolor="#FFFFFF" class=right_bg><iss:blank />
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="20">&nbsp;</td>
							<td class="text_12_title">当前位置: <a href="#" class="blue_1">首页</a>
								&gt; <a href="#" class="blue_1">通知公告管理 </a>&gt;通知公告维护</td>
						</tr>
					</table>

					<table width="98%" border="0" cellpadding="0" cellspacing="0"
						background="../images/bg_body_title.jpg" class="list_border1">
						<tr>
							<td width="10">&nbsp;</td>
							<td>
								<table border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td><img src="../images/pic_title_1.jpg" name="imgL1"
											width="8" height="24" id="imgL1">
										</td>
										<td valign="bottom" class="text_12_border" nowrap="nowrap"
											style="cursor: hand;" id="tdTitle1">查询通知公告</td>
										<td><img src="../images/pic_title_2.jpg" name="imgR1"
											width="8" height="24" id="imgR1">
										</td>
									</tr>
								</table></td>
						</tr>
					</table>
					<table width="98%" border="0" cellpadding="0" cellspacing="0"
						class="list_border2" id="table4">
						<tr>
							<td align="center" valign="top"><iss:blank />
								<form id="mainForm3" name="mainForm3" method="post"
									action="../servicecreate/queryServiceList.html"></form>
								<form id="mainForm9" name="mainForm9" method="post" action="../announcement/delAnnouncements.html">
									<TABLE width="98%" border=0 cellPadding=0 cellSpacing=0
										class=list_border>
										<TBODY>
											<TR>

												<TD class=list_title width="2"><IMG height=20
													src="../images/icon_line2.gif" width=2>
												</TD>
												<TD width=10% class=list_title><input type="checkbox"
													id="mybox">
												</TD>

												<TD class=list_title width="2"><IMG height=20
													src="../images/icon_line2.gif" width=2></TD>
												<TD class=list_title>公告标题</TD>

												<TD class=list_title width="2"><IMG height=20
													src="../images/icon_line2.gif" width=2></TD>
												<TD class=list_title>发布人</TD>

												<TD class=list_title width="2"><IMG height=20
													src="../images/icon_line2.gif" width=2></TD>
												<TD class=list_title>发布时间</TD>

												<TD class=list_title width="2"><IMG height=20
													src="../images/icon_line2.gif" width=2></TD>
												<TD class=list_title>公告状态</TD>
												<a:auth userType="1">
												<TD class=list_title width="2"><IMG height=20
													src="../images/icon_line2.gif" width=2></TD>
												<TD class=list_title>操作</TD>
												</a:auth>
											</TR>

											<c:forEach var="varAnn" items="${announcementList}"
												varStatus="status">
												<TR class="list_td_white${(status.index+1)%2}">
													<TD></TD>
													<TD class="list_td" align="center"><input
														type="checkbox" name="deleteIds" value="${varAnn.id}">
													</TD>
													<TD></TD>
													<TD class="list_td" align="center"><a
														href="../announcement/gotoAnnouncementInfo.html?id=${varAnn.id}">${varAnn.title}</a>
													</TD>
													<TD></TD>
													<TD align="center">${varAnn.username}</TD>
													<TD></TD>
													<TD align="center">${varAnn.publishdate}</TD>
													<TD></TD>
													<TD align="center"><c:choose>
															<c:when test="${varAnn.status eq 1}">显示</c:when>
															<c:when test="${varAnn.status eq 2}">隐藏</c:when>
															<c:when test="${varAnn.status eq 3}">删除</c:when>
														</c:choose></TD>
													<a:auth userType="1">
													<TD></TD>
													<TD align="center"><a
														href="../announcement/gotoModAnnouncementInfo.html?id=${varAnn.id}">修改</a>
													</TD>
													</a:auth>
												</TR>
											</c:forEach>
									</TABLE>
									<iss:blank />
								</form></td>
						</tr>
						<tr>
							<td>
								<table width="98%" height="24" border="0" cellpadding="0"
									cellspacing="0">
									<tr>
										<td valign="top">
											<a:auth userType="1">
											<input name="Submit22" type="submit"
											class="button_normal" value="发布公告 "
											onClick="window.location.href='<%=request.getContextPath()%>/announcement/insertAnnouncementInfo.html'">
											&nbsp;&nbsp;
											<input name="Submit32" type="button"
											class="button_normal" value="删  除" id="delBtn">
											</a:auth>
										</td>
										<td align="right"><iss:navigation /></td>
									</tr>
								</table></td>
						</tr>
					</table></TD>
			</TR>
		</TBODY>
	</TABLE>
</body>
</HTML>
